package com.yatb.trac.pojo.condition;

import java.math.BigDecimal;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.yatb.trac.util.SQLCondition;

public class FinderProfiloById implements SQLCondition {

	private String idProfilo;

	public FinderProfiloById(String idProfilo) {
		this.idProfilo = idProfilo;
	}

	public Criterion create(Object... params) {
		return Restrictions.eq("idProfilo", new BigDecimal(idProfilo));
	}

}
